﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ImportChemical.aspx.cs"
    Inherits="LDSP.UI.Admin.ImportChemical" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>化学品导入</title>
    <link type="text/css" href="../../styles/bg.css" rel="Stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="pnl_script" runat="server" RenderMode="Inline">
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <img src="../../images/loadding.gif" />
            数据加载中，请稍候...
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div class="mngTitle">
        <span class="mngEmphasis">化学品</span>导入
    </div>
    <div>
        <table class="mngDetail">
            <tr>
                <td class="itemLabel">
                    化学品文件:
                </td>
                <td class="itemValue">
                    <asp:FileUpload ID="fup_file" runat="server" CssClass="itemCtrl" Width="623px" />
                    <asp:Button ID="btn_ok" runat="server" Text="导入" OnClick="btn_ok_Click" 
                        CssClass="mngBtn" />
                    <input type="button" value="进入管理" onclick="javascript:location.href='MngChemical.aspx'"
                        class="mngBtn" />
                    <asp:Button ID="btn_template_download" runat="server" Text="模板下载" 
                        CssClass="mngBtn" onclick="btn_template_download_Click" />
                </td>
            </tr>
        </table>
        <asp:GridView ID="grd_list" runat="server" AutoGenerateColumns="False" EmptyDataText="当前没有需要上传的文件！"
            DataKeyNames="ItemName" OnRowDataBound="grd_list_RowDataBound" BackColor="#666699"
            BorderColor="#999999" CellPadding="3" GridLines="Vertical" Width="100%">
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" BorderStyle="Solid" BorderWidth="1px" />
            <EmptyDataRowStyle BorderStyle="None" BorderWidth="0px" Font-Bold="True" Font-Size="16pt"
                ForeColor="white" />
            <Columns>
                <asp:TemplateField Visible="false">
                    <HeaderTemplate>
                        <asp:CheckBox ID="chb_selectAll" runat="server" onclick="selectAll(this,'grd_list')" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="chb" runat="server" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="40px" />
                </asp:TemplateField>
                <asp:BoundField HeaderText="序号" ItemStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
                </asp:BoundField>
                <asp:BoundField DataField="ItemName" HeaderText="化学品名称" ItemStyle-Width="200px">
                </asp:BoundField>
                <asp:BoundField DataField="ExcelSheetName" HeaderText="化学品目录"></asp:BoundField>
                <asp:BoundField DataField="Message" HeaderText="消息" ItemStyle-Width="200px" />
                <asp:BoundField DataField="Success" HeaderText="是否成功" ItemStyle-Width="50px" />
            </Columns>
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#799AE1" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="#DCDCDC" />
        </asp:GridView>
    </div>
    </form>
</body>
</html>
